package logger

import (
	"log"
	"os"
)

var (
	Info  *log.Logger
	Warn  *log.Logger
	Error *log.Logger
)

// Init 加载日志配置
func init() {
	Info = log.New(os.Stdout, "[Info] ", log.LstdFlags)

	Warn = log.New(os.Stdout, "[Warn] ", log.LstdFlags|log.Llongfile)

	Error = log.New(os.Stderr, "[Error] ",
		log.LstdFlags|log.Lmicroseconds|log.Llongfile)
}
